#include <stdio.h>
int f(int x)
{
  int y = 0;
  for(int i = 1; i <= x; ++i)
  {
    y += i;
  }
  return y;
}
int main()
{
  int a = 100;
  int result = f(a);
  printf("result = %d\n",result);
  return 0;
}
